package com.loser.base;

import com.loser.module.base.proto.base.CmdFeign;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @Desc 抽取公共的需要在SpringBoot加载完毕之后加载的业务
 * @Author loser
 * @Date 2021/3/2 8:48
 **/
@Component
public class BaseServerRunner implements ApplicationRunner {


    @Override
    public void run(ApplicationArguments args) {
        // 注册cmd接口到api网关
        CmdFeign.registerCmd();
    }

}
